﻿using System;
class Trapezoid
{
    static void Main()
    {
        int topTrapSide;
        int outSideDots;
        int inSideDots;
        do
        {
            while (true)
            {
                try
                {
                    topTrapSide = int.Parse(Console.ReadLine());
                    break;
                }
                catch (Exception)
                {
                }
            }
        } while ((topTrapSide < 3) || (topTrapSide > 39));
        outSideDots = inSideDots = topTrapSide;
        for (int numberRows = 0; numberRows <= (topTrapSide); numberRows++)
        {
            if (numberRows == 0)
            {
                for (int i = 1; i <= ((2 * topTrapSide) - 1); i++)
                {

                    if (i <= (topTrapSide))
                    {
                        Console.Write(".");
                    }
                    else
                    {
                        Console.Write("*");
                    }
                }
                Console.WriteLine("*");
            }
            else
            {
                if (numberRows == (topTrapSide))
                {
                    for (int k = 0; k < (topTrapSide * 2); k++)
                        Console.Write("*");
                }
                else
                {
                    for (int i = 1; i <= (outSideDots - 1); i++)
                    {
                        Console.Write(".");
                    }
                    Console.Write("*");
                    for (int m = 1; m <= (inSideDots - 1); m++)
                    {
                        Console.Write(".");
                    }
                    Console.WriteLine("*");
                    outSideDots--;
                    inSideDots++;
                }
            }
        }
    }
}

